Barnes-Hut Simulation
By: Gijs Bellaard
This is a simulation of 1000 point mass particles interacting through gravity using the Barnes-Hut algorithm in pure javascript. The threshold input determines how accurate/expensive the simulation is. How higher the threshold is, the more the gravity calculations will be approximated, and how less computationally expensive the simulation will be. If the threshold is set to 0 the simulation is 100% accurate.